package io.renren.modules.pile.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.pile.dao.PileDao;
import io.renren.modules.pile.entity.PileEntity;
import io.renren.modules.pile.service.PileService;

@Service("pileService")
public class PileServiceImpl extends ServiceImpl<PileDao, PileEntity> implements PileService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PileEntity> page = this.page(
                new Query<PileEntity>().getPage(params),
                new QueryWrapper<PileEntity>()
        );

        return new PageUtils(page);
    }

}